home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / program / n_b_v203.zip / BOXBRDR.TXT < prev    next >
Text File  |  1996-07-04  |  3KB  |  44 lines

  1. $if 0
  2.     ┌──────────────────────────╖                        PowerBASIC v3.20
  3.  ┌──┤          DASoft          ╟──────────────────────┬──────────────────╖
  4.  │  ├──────────────────────────╢    Copyright 1995    │ DATE: 1995-10-01 ╟─╖
  5.  │  │ FILE NAME   BOX&BRDR.TXT ║          by          ╘════════════════─ ║ ║
  6.  │  │                          ║  Don Schullian, Jr.                     ║ ║
  7.  │  ╘══════════════════════════╝                                         ║ ║
  8.  │ A license is hereby granted to the holder to use this source code in  ║ ║
  9.  │ any program, commercial or otherwise,  without receiving the express  ║ ║
  10.  │ permission of the copyright holder and without paying any royalties,  ║ ║
  11.  │ as long as this code is not distributed in any compilable format.     ║ ║
  12.  │  IE: source code files, PowerBASIC Unit files, and printed listings   ║ ║
  13.  ╘═╤═════════════════════════════════════════════════════════════════════╝ ║
  14.    │                ....................................                   ║
  15.    ╘═══════════════════════════════════════════════════════════════════════╝
  16. $endif
  17.  
  18. Boxes and borders are used extensively throughout the GUI world as they lend
  19. themselves well to the mouse-driven environment. They can just sit there
  20. like a lump or be made to light-up, click, move around, and a host of other
  21. cute tricks that keeps the user's mind off what he/she is doing d;)
  22.  
  23. Anyhow, to get a box/border on the screen you need to send the top/left and
  24. bottom right corners, some colors, and how wide you want the border to be.
  25. Some of the borders have set widths and some even have set colors that they
  26. work with but the one thing they all have in common is that they were built
  27. with the DASoft color combinations in mind and that they all think that they
  28. are working on a "reversed" screen where color 0 = white & color 15 = black.
  29. This shouldn't pose too much of a problem as it has become the standard by
  30. which the world works.
  31.  
  32. As events (windows) rule the GUI screens there is an extra set of border
  33. routines that allow you to draw the borders by calling them with a single
  34. element. Each of these have the same name as their counterpart but end in
  35. an "A". ( eg: GBoxBevelA ) It's all explained in A_BEVEL.DMO so have a look
  36. if you are using event arrays in your program.
  37.  
  38. Have a look at fLoadDAScolor$ to get an idea of how I lay-out colors to
  39. create the illusion of 3-D using the VGA screen and it's 16 colors. You can
  40. of course change the colors using the ready-made colors our even create your
  41. own color combos.
  42.  
  43.  
  44. d83)